#pragma once

typedef struct{
    char ip[64];
    unsigned int port;
    char default_upload_server[100];
    char secret[100];
}config_t;

typedef struct{
    // mysql config
    char user[64];
    char passwd[64];
    char db[64];
    char host[64];
    unsigned int port;
}mysql_config_t;

int load_config(const char *filename,config_t *config,mysql_config_t *mysql_config);
